﻿namespace WhoCanHelpMe.Web.Controllers.Profile.Mappers
{
    #region Using Directives

    using AutoMapper;

    using Contracts;

    using Domain;

    using ViewModels;

    #endregion

    public class CategoryViewModelMapper : ICategoryViewModelMapper
    {
        public CategoryViewModelMapper()
        {
            Mapper.CreateMap<Category, CategoryViewModel>();
        }

        public CategoryViewModel MapFrom(Category input)
        {
            return Mapper.Map<Category, CategoryViewModel>(input);
        }
    }
}